package com.cnd.scm.rabbitmq.common;

/**
 * @version V1.0
 * @EnumName: MessageStatusEnum
 * @Description: MessageStatusEnum 对应提供的枚举类型
 * @author: 李启联
 * @date: 2021-03-23 17:35
 * @Copyright: Copyright (c) 2021
 */
public enum MessageStatusEnum {

    SEND(0,"投递中"),
    SUCCESS(1,"投递成功"),
    FAIL(2,"投递失败"),
    CONSUMED(2,"已消费");

    private Integer code;
    private String desc;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    MessageStatusEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }


}
